package controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

public class SelfDefineController implements Controller{

	@Override
	public ModelAndView handleRequest(HttpServletRequest arg0, HttpServletResponse arg1) throws Exception {
	
		  ModelAndView  mv=new   ModelAndView ();
		  mv.addObject("msg","通过Spring 框架下的SpingMvc 中的 Controller 接口实现控制的功能--------Handler处理器");
		  mv.setViewName("/WEB-INF/page/page01.jsp");
		 return mv;
				
		
		
	}

}
